import QtQuick 2.14
//主界面模块
Item {
    id: zhuItem
    anchors.fill: parent
    Image {
        id: beijing
        anchors.fill: parent
        source: "/beijing.bmp"
        MouseArea {//退出
            x: 0
            y: 0
            width: 90
            height: 80
            onClicked: {
                winroot.myqmlexit()
            }
        }
        MouseArea {//环境监控
            id: huanjing
            x: 385
            y: 80
            width: 135
            height: 160
            onClicked: {
                rootLoader.source = "Huanjingjkong.qml"
            }
        }
        MouseArea {//设备控制
            id: shebei
            x: 160
            y: 230
            width: 150
            height: 190
            onClicked: {
                rootLoader.source = "Shebeikongzhi.qml"
                winroot.myindex = 0
            }
        }
        MouseArea {//添加更多
            id: stianjia
            x:580
            y:280
            width: 110
            height: 150
            onClicked: {
                rootLoader.source = "Guanyvwomen.qml"
            }
        }
    }
}
